package com.xh.demo.commons.entity;

import com.xh.demo.commons.consts.RConst;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class AppInfo {

    /**
     * App id
     */
    private String appId;

    /**
     * API 秘钥
     */
    private String appSecret;

    /**
     * 是否禁用
     */
    private Boolean disabled;

    /**
     * 是否禁用
     */
    private Long expireTime;

    public AppInfo(String appId, String appSecret, Boolean disabled) {
        this.appId = appId;
        this.appSecret = appSecret;
        this.disabled = disabled;
        this.expireTime = RConst.Time.TIME_2_HOUR;
    }
}